#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>

#define LEN 10

void print(int arr[])
{
	int i = 0;
	for (i = 0; i < LEN; i++)
		printf("%d", arr[i]);
	printf("\n");
}

void reserve(int str[])
{
	int i = 0;
	int temp = 0;
	for(i=0;i<=LEN/2;i++)
	{
		temp = str[i];
		str[i] = str[LEN - i - 1];
		str[LEN - i - 1] = temp;
	}
}

void init(int str[])
{
	int i = 0;
	int w = 0;
	for (i = 0; i < LEN; i++)
		str[i] = w;
}

int main(void)
{
	int arr[LEN] = { 1,2,3,4,5,6,7,8,9,0 };
	printf("arr:");
	print(arr);
	reserve(arr);
	printf("after_reserve:");
	print(arr);
	init(arr);
	printf("after_init:");
	print(arr);
	

	return 0;
}